'use strict';
dataloaderApp.service  ('salsforceService', [ '$rootScope', '$location', '$q', 'httpResource', function ($rootScope, $location, $q, httpResource) {
	return {
		add : function (profile) {
			return httpResource.post ({url:'rest/profiles/add', param: profile});
		},

		findAll : function () {
			return httpResource.get ({url:'rest/profiles/all'});			
		},
		
		getEnabledProfile : function () {
			return httpResource.get ({url:'rest/profiles/enabled'});			
		},
		
		disableProfiles : function (profiles) {
			return httpResource.get ({url:'rest/profiles/disable/all', param:profiles});			
		},
		

	}
}]);
	